package com.dhcc.logs.service;
 
import java.util.List;
import java.util.Map;

import org.springframework.data.domain.Page;

import com.dhcc.logs.entity.User;
 
public interface UserService {
 
    
	//1、分页查询
  	public Page findAll(Map<String, Object> map, int page, int size);
  	 /**
       * 1.保存用户
       */
      public void save(User user);

      /**
       * 2.更新用户
       */
      public void update(User user);
  	/**
       * 3.根据id查询用户
       */
      public User findById(String id);
      public User findOne(String id);
      /**
       * 4.查询用户
       */
      public List<User> findAll();
      /**
       * 5.根据id删除用户
       */
      public void deleteById(String id);
      public void deleteAll();
 
}